package com.chenxin.transaction.feign;

import org.dromara.hmily.annotation.Hmily;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "hmily-tcc-lisi", fallback = LisiFallBack.class)
public interface LisiFeign {

    /**
     * 远程调用李四的微服务
     */
    @GetMapping("/lisi/transfer")
    @Hmily//如果这个不加
    Boolean transfer(@RequestParam("amount") Double amount);
}
